package com.baylor.server.base.security;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baylor.server.base.entity.MyData;
import com.baylor.server.base.entity.XaCmsResource;
import com.baylor.server.base.repository.XaCmsResourceRepository;


@Service("MyFind")
@Transactional(readOnly = true)
public class MyFindImpl implements MyFind {
	@Autowired
	private XaCmsResourceRepository xaCmsResourceRepository;
	
	public Page<XaCmsResource> find(int status, Pageable p) {
		
		return xaCmsResourceRepository.myFind(status, p);
	}

	public Page<MyData> myMutilTableFind(String userName, Pageable p) {
		 
		return xaCmsResourceRepository.myMutilTableFind(userName, p);
	}

}
